package com.chat.service;

import com.chat.common.Message;
import com.chat.common.MessageType;
import com.chat.common.User;

public class SendFriendApply {
        public void addfriendservice(String username, String addid){
                Message msg=new Message();
                User user=new User();
                msg.setMesType(MessageType.MESSAGE_SEND_FRIEND_APPLY);
                user.setUsername(username);
                user.setAddid(addid);
                msg.setData(user);
                ClientConnectServerThread clientConnectServerThread=ManageClientConnectServerThread.getClientConnectServerThread(username);
                clientConnectServerThread.send(msg);
        }
}
